From 056154024c1801f6abd54f836ebc2d796f92fe36 Mon Sep 17 00:00:00 2001 From: Hollis Blanchard Date: Fri, 8 Sep 2006 10:22:45 -0500 Subject: [PATCH] [XEN][POWERPC] Fix machine check build break. Building exceptions.c with CRASH_DEBUG=y produces a build break, because gcc complains about the unused variable. Signed-off-by: Amos Waterland Signed-off-by: Hollis Blanchard --- xen/arch/powerpc/exceptions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/powerpc/exceptions.c b/xen/arch/powerpc/exceptions.c index 93f97d4db4..ca851fa44a 100644 --- a/xen/arch/powerpc/exceptions.c +++ b/xen/arch/powerpc/exceptions.c @@ -55,11 +55,11 @@ void do_dec(struct cpu_user_regs *regs) void program_exception(struct cpu_user_regs *regs, unsigned long cookie) { - int recover = 0; - #ifdef CRASH_DEBUG __trap_to_gdb(regs, cookie); #else /* CRASH_DEBUG */ + int recover = 0; + show_registers(regs); printk("dar 0x%016lx, dsisr 0x%08x\n", mfdar(), mfdsisr()); printk("hid4 0x%016lx\n", regs->hid4); -- 2.30.2